import { rcaNumberFormat } from './common.js'
import { commonTableOption } from './common.js'
export const tableOption = {
  ...commonTableOption,
  column: [
    {
      label: '9号线',
      children: [{
        type: 'date',
        label: '统计日期',
        prop: 'statisticsDate'
      }, {
        label: '单程票',
        children: [
          {
            label: 'TVM发售/TVM+SIM发售',
            children: [
              {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '现金(TVM)',
                prop: 'tvmOneTicketCash'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '支付宝(TVM+SIM)',
                prop: 'tvmOneTicketAlipay'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '微信(TVM+SIM)',
                prop: 'tvmOneTicketWechat'
               }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: 'X行(TVM+SIM)',
                prop: 'tvmOneTicketXbank'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '小计',
                prop: 'tvmSubTotal'
              },
            ]
          }, {
            label: 'BOM票款',
            children: [
              {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '现金',
                prop: 'bomOneTicketCash'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: 'POS',
                prop: 'bomOneTicketPosAmount'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '支付宝',
                prop: 'bomOneTicketAlipay'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '微信',
                prop: 'bomOneTicketWechat'
              }, {
                type: 'input',
                showSummary: true,
                precision: 2,
                formatter: (row, value, label, column) => {
                  return rcaNumberFormat(value, true)
                },
                label: '小计',
                prop: 'bomSubTotal'
              },
            ]
          }, /*{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '预制票',
            prop: 'prefabricatedTicketAmount'
		 }, */
		 //预制票修改开始
	   {
        label: '预制票',
        children: [
		{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '现金',
          prop: 'prefabricatedTicketAmount'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: 'POS',
          prop: 'prefabricatedTicketPosAmount'
        }, 
       ]
      },
	  //结束
	   {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '应急票',
            prop: 'emergencyTicketAmount'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '计次票',
            prop: 'ticketCounting'
          }]
      }, {
        label: '其他车票',
        children: [/*{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '计次票',
          prop: 'ticketCounting'
        }, */{
          label: '日票',
          children: [{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '现金',
            prop: 'dailyTicketCash'
          },{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'POS',
            prop: 'dailyTicketPosAmount'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '支付宝',
            prop: 'dailyTicketAlipay'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '微信',
            prop: 'dailyTicketWechat'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '小计',
            prop: 'dailySubTotal'
          },

          ]
        }, {
          label: '纪念票',
          children: [{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '现金',
            prop: 'commemorativeTicketCash'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'POS',
            prop: 'commemorativeTicketPosAmount'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '支付宝',
            prop: 'commemorativeTicketAlipay'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '微信',
            prop: 'commemorativeTicketWechat'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '小计',
            prop: 'commemorativeTicketSubTotal'
          },
          ]
        },
        ]
      }, {
        label: 'APP纪念票(线上)',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: 'APP纪念票(线上)',
          prop: 'appCommemorativeTicketWechat'
        },
        ]
      }, {
        label: '长安通',
        children: [{
          label: '充值',
          children: [{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '现金',
            prop: 'catTicketCash'
          },{
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'POS',
            prop: 'catTicketPosAmount'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'BOM支付宝',
            prop: 'catTicketAlipay'
           }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'BOM微信',
            prop: 'catTicketWechat'
		   }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'TVM+SIM支付宝',
            prop: 'catTicketTvmsimAlipay' 
		    }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'TVM+SIM微信',
            prop: 'catTicketTvmsimWechat' 
		   }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: 'X行',
            prop: 'catTicketTvmsimXbank'
          }, {
            type: 'input',
            showSummary: true,
            precision: 2,
            formatter: (row, value, label, column) => {
              return rcaNumberFormat(value, true)
            },
            label: '长安通小计',
            prop: 'catSubTotal'
          },

          ]
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '刷卡消费',
          prop: 'catTicketPayCard'
        },

        ]
      }, {
        type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: '网络售票',
        prop: 'onlineTicketSales'
      }, {
        label: '电子二维码车票',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '支付宝',
          prop: 'qrCodeTicketAlipay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '微信',
          prop: 'qrCodeTicketWechat'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: 'APP银联支付',
          prop: 'qrCodeTicketUnionpay'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '二维码小计',
          prop: 'qrCodeSubTotal'
        },
        ]
      }, {
        label: '人脸',
        children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '建行',
          prop: 'faceEleBank'
        }
        ]
      },   {
      label: '应急及互联互通',
      children: [
        {
          type: 'input',
          showSummary: true,
          precision: 2,		 
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '支付宝',
          prop: 'qrConnectivityAlipay'
        },
         {
          type: 'input',
          showSummary: true,
          precision: 2,		
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '微信',
          prop: 'qrConnectivityWechat'
        },
         {
          type: 'input',
          showSummary: true,
          precision: 2,		
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '小计',
          prop: 'qrConnectivitySubTotal'
        }
      ]
    },{
         type: 'input',
         showSummary: true,
         precision: 2,
         formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
        label: '交通一卡通',
        prop: 'allOneTrafficCard'		
      }, {
        //label: '车站票款长款',
        //children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款现金长款',
          prop: 'stationTicketLongCash'
        /*}, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款POS长款',
          prop: 'stationTicketLongPos'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款长款小计',
          prop: 'stationTicketLongSubTotal'
        },*/

        //]
      }, {
        //label: '车站票款短款',
        //children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款现金短款',
          prop: 'stationTicketShortCash'
        /*}, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款POS短款',
          prop: 'stationTicketShortPos'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '车站票款短款小计',
          prop: 'stationTicketShortSubTotal'
        },*/

        //]
      }, {
        //label: '补车站票款短款',
        //children: [{
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '补车站票款短款',
          prop: 'stationCompensationCash'
       /* }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '补车站票款短款POS',
          prop: 'stationCompensationPos'
        }, {
          type: 'input',
          showSummary: true,
          precision: 2,
          formatter: (row, value, label, column) => {
            return rcaNumberFormat(value, true)
          },
          label: '补车站票款短款小计',
          prop: 'stationCompensationSubTotal'
        },*/

        //]
      }, {
        type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: '备用金误解行',
        prop: 'releasePettyCash'
      }, {
        type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: 'POS小计',
        prop: 'subTotalPos'
      }, {
        type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: '解行金额',
        prop: 'settlementAmount'
      }, {
        /*type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: 'POS小计',
        prop: 'subTotalPos'
      }, {*/
        type: 'input',
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat(value, true)
        },
        label: '待清分收入合计',
        prop: 'subTotal'
      },{
	    type: 'input',
        label: '数据提醒',
        prop: 'errMsg',
        slot: true
	    }
      ]
    },]
}
